package com.woniu.user.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.woniu.dto.IdentityInformationDto;
import com.woniu.exception.user.UserException;
import com.woniu.form.NameLoginForm;
import com.woniu.param.*;
import com.woniu.user.entity.User;

/**
 * <p>
 * 登录表 服务类
 * </p>
 *
 * @author ly
 * @since 2024年12月05日
 */
public interface UserService extends IService<User> {



    IdentityInformationDto loginFood(LoginParam loginParam) throws Exception;

    IdentityInformationDto loginRequire(LoginParam loginParam) throws Exception;

    void insertUserOrFixer(InsertUserOrStoreParam insertUserOrStoreParam) throws Exception;

    void changePassword(ChangePassWordParam changePassWordParam) throws Exception;

    void insertAdmin(InsertAdminParam insertAdminParam) throws Exception;

    void unableUserByUserId(Integer userId) throws UserException;

    void deleteUserByUserId(Integer userId) throws UserException;

    void ableUserByUserId(Integer userId) throws UserException;

    void insertStoreOwner(StoreOwnerParam toBean) throws UserException;

    void rePassword(Integer userId, String adminId) throws Exception;

    void rePassword(String userName, String adminId) throws Exception;

    void sendLoginCode(String phone) throws Exception;

    IdentityInformationDto codeLogin(String code, String phone) throws Exception;

    IdentityInformationDto loginUserByName(NameLoginForm nameLoginForm) throws Exception;

    IdentityInformationDto loginAdminByName(NameLoginForm nameLoginForm) throws Exception;
}
